load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
    name = "pessimistictest_test",
    timeout = "long",
    srcs = [
        "main_test.go",
        "pessimistic_test.go",
    ],
    flaky = True,
    deps = [
        "//pkg/config",
        "//pkg/domain",
        "//pkg/errno",
        "//pkg/expression",
        "//pkg/kv",
        "//pkg/parser",
        "//pkg/parser/auth",
        "//pkg/parser/model",
        "//pkg/parser/mysql",
        "//pkg/parser/terror",
        "//pkg/session",
        "//pkg/sessionctx/variable",
        "//pkg/sessiontxn",
        "//pkg/store/driver/error",
        "//pkg/store/gcworker",
        "//pkg/store/mockstore",
        "//pkg/tablecodec",
        "//pkg/testkit",
        "//pkg/testkit/external",
        "//pkg/types",
        "//pkg/util/codec",
        "//pkg/util/dbterror/exeerrors",
        "//pkg/util/dbterror/plannererrors",
        "//pkg/util/deadlockhistory",
        "//pkg/util/sqlkiller",
        "//tests/realtikvtest",
        "@com_github_pingcap_errors//:errors",
        "@com_github_pingcap_failpoint//:failpoint",
        "@com_github_stretchr_testify//require",
        "@com_github_tikv_client_go_v2//config",
        "@com_github_tikv_client_go_v2//oracle",
        "@com_github_tikv_client_go_v2//testutils",
        "@com_github_tikv_client_go_v2//tikv",
        "@com_github_tikv_client_go_v2//txnkv/transaction",
    ],
)
